package com.linx.system.domain.bo;

import com.linx.system.domain.SysUserPark;
import com.linx.common.core.validate.AddGroup;
import com.linx.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import jakarta.validation.constraints.*;

/**
 * 用户园区关联业务对象 sys_user_park
 *
 * @author linx
 * @date 2024-11-09
 */
@Data
@AutoMapper(target = SysUserPark.class, reverseConvertGenerate = false)
public class SysUserParkBo {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long userParkId;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 园区id
     */
    @NotNull(message = "园区id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parkInfoId;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
